package com.rmb.common.exception;


import com.rmb.common.model.response.ResultCode;


/**
 * @author wan
 */
public class CustomException extends RuntimeException{

    /**
     * 自定义错误代码异常
     * 错误代码 resultCode
     */
    ResultCode resultCode;

    public CustomException(ResultCode resultCode){
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode(){
        return resultCode;
    }

}
